package com.jlcloud.core.holidays.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.ArrayList;
import java.util.List;

/**
 * HolidaysApi 配置类
 *
 * @author By: JlCloud <br>
 * @Package: com.jlcloud <br>
 * @CreateTime: 2024-12-03 21:45 <br>
 * @Copyright: 2021 www.jilianjituan.com Inc. All rights reserved. <br>
 * @Caution 注意：本内容仅限于冀联人力集团内部传阅，禁止外泄以及用于其他的商业目的 <br>
 */
@Getter
@Setter
@RefreshScope
@ConfigurationProperties(HolidaysApiProperties.PREFIX)
public class HolidaysApiProperties {
	public static final String PREFIX = "jlcloud.holidays";

	/**
	 * 自行扩展的 json 文件路径
	 */
	private List<ExtData> extData = new ArrayList<>();

	@Getter
	@Setter
	public static class ExtData {
		/**
		 * 年份
		 */
		private Integer year;
		/**
		 * 数据目录
		 */
		private String dataPath;
	}

}
